package cz.data.domain.metadata.rpc;

import cz.data.common.annotation.DataInner;
import cz.data.domain.metadata.model.entity.MetadataSourceEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(contextId = "metadataSourceFeign", value = "metadata-domain-api")
public interface MetadataSourceFeign {

    @DataInner
    @GetMapping("/inner/sources/{id}")
    MetadataSourceEntity getMetadataSourceById(@PathVariable("id") String id);

    @DataInner
    @GetMapping("/inner/sources/list")
    List<MetadataSourceEntity> getMetadataSourceList();
}
